<h2>Configurações</h2>
<div class="settings">
	<ul class="nav nav-tabs" id="settingsuser">
	  <li class="active"><a href="#geral">Geral</a></li>
	  <li><a href="#seguranca">Segurança</a></li>
	</ul>

	<div class="tab-content">
	  <div class="tab-pane active" id="geral">

		<?php echo $this->Form->create('User', array('action'=>'edit','type'=>'file','method'=>'post','class'=>'nm')); ?>	
			<div class="row">
				<div class="col-lg-4 photo-settings">
					<?php if($this->User->Photo() == ''){?>
	  					<img src='/img/perfil.jpg' />
	  				<?php }  else{ ?>
						<img src='/img/users/<?php echo $this->User->Photo() ?>'/>
	  				<?php } ?>
                        <div class="input">
                            <?php echo $this->Form->input('User.photo', array('label'=>false,'div'=>false,'type'=>'file','class'=> 'form-control  ','placeholder'=>'Nome')); ?>
                            <span> Alterar Foto </span>
                        </div>
                       
				</div>
				<div class="col-lg-8">
					<div class="row-fluid">
						<div class="form-group">
							<div class="row">
								<div class="col-lg-4"><strong>Nome</strong></div>
								<div class="col-lg-5"> 
									<?php echo $this->Form->input('User.first_name', array('label'=>false,'div'=>false,'disabled'=>'disabled','class'=> 'form-control  ','id'=>'first_name','placeholder'=>'Nome','required'=>'requeride')); ?>
								</div>
								<div class="col-lg-3 edit">
									<a href="#" class="open-edit" id="open-first_name"><i class="glyphicon glyphicon-edit"></i> Editar</a></div>
							</div>
				        </div>
				        <div class="form-group">
				        	<div class="row">
								<div class="col-lg-4"><strong>Sobrenome</strong></div>
								<div class="col-lg-5"> 
									<?php echo $this->Form->input('User.last_name', array('label'=>false,'div'=>false,'disabled'=>'disabled','class'=> 'form-control  ','id'=>'last_name','placeholder'=>'Sobrenome')); ?>
								</div>
								<div class="col-lg-3 edit">
									<a href="#" class="open-edit" id="open-last_name"><i class="glyphicon glyphicon-edit"></i> Editar</a></div>
							</div>
				            
				        </div>
				    </div>				  
					<div class="row-fluid">
						<div class="form-group">
							<div class="row">
								<div class="col-lg-4"><strong>Username</strong></div>
								<div class="col-lg-5"> 
									<?php echo $this->Form->input('User.username', array('label'=>false,'type'=>'text','div'=>false,'disabled'=>'disabled','class'=> 'form-control  ', 'placeholder'=>'Username','required'=>'requeride','id'=>'username')); ?>
								</div>
								<div class="col-lg-3 edit">
									<!-- <a href="#" class="open-edi" id="open-username"><i class="glyphicon glyphicon-edit"></i> Editar</a>-->
								</div> 
							</div>
				            
				        </div>

				        <div class="form-group">
				        	<div class="row">
								<div class="col-lg-4"><strong>Data de aniversário</strong></div>
								<div class="col-lg-5"> 
									<?php echo $this->Form->input('User.birth', array('label'=>false,'type'=>'text','div'=>false,'disabled'=>'disabled','class'=> 'form-control  ', 'placeholder'=>'Data de aniversário','id'=>'birth')); ?>
								</div>
								<div class="col-lg-3 edit">
									<a href="#" class="open-edit" id="open-birth"><i class="glyphicon glyphicon-edit"></i> Editar</a></div>
							</div>
				            
				        </div>

				        <div class="form-group">
				        	<div class="row">
								<div class="col-lg-4"><strong>Sexo</strong></div>
								<div class="col-lg-5"> 
									<?php echo $this->Form->input('User.sex',array('label'=>false,'options'=>array('M'=>'Masculino','F'=>'Feminino'),'div'=>false,'disabled'=>'disabled','class'=> 'form-control  ', 'placeholder'=>'Sexo','required'=>'requeride','id'=>'sex')); ?>
								</div>
								<div class="col-lg-3 edit">
									<a href="#" class="open-edit" id="open-sex"><i class="glyphicon glyphicon-edit"></i> Editar</a></div>
							</div>
				            
				        </div>

				        <div class="form-group">
				        	<div class="row">
								<div class="col-lg-4"><strong>Ocupação</strong></div>
								<div class="col-lg-5"> 
									<?php echo $this->Form->input('User.occupation', array('label'=>false,'type'=>'text','div'=>false,'disabled'=>'disabled','class'=> 'form-control  ', 'placeholder'=>'Ocupação','required'=>'requeride','id'=>'occupation')); ?>
								</div>
								<div class="col-lg-3 edit">
									<a href="#" class="open-edit" id="open-occupation"><i class="glyphicon glyphicon-edit"></i> Editar</a></div>
							</div>
				            
				        </div>

				   	</div>
				   	<?php echo $this->Form->end(array('label'=>'Salvar Alterações','class'=>' btn btn-primary')); ?>
				</div>
			</div>

	  </div>
	  <div class="tab-pane" id="seguranca">
	  	
	  			<?php echo $this->Form->create('User', array('action'=>'edit','type'=>'file','method'=>'post','class'=>'nm')); ?>	
			<div class="row">
				
				<div class="col-lg-8">
					<div class="row-fluid">
						<div class="form-group">
							<div class="row">
								<div class="col-lg-4"><strong>Email</strong></div>
								<div class="col-lg-5"> 
									<?php echo $this->Form->input('User.email', array('label'=>false,'div'=>false,'disabled'=>'disabled','class'=> 'form-control  ','id'=>'email','placeholder'=>'Email','required'=>'requeride')); ?>
								</div>
								<div class="col-lg-3 edit">
									<a href="#" class="open-edit" id="open-email"><i class="glyphicon glyphicon-edit"></i> Editar</a></div>
							</div>
				        </div>
				        <div class="form-group">
				        	<div class="row">
								<div class="col-lg-4"><strong>Email Alternativo</strong></div>
								<div class="col-lg-5"> 
									<?php echo $this->Form->input('User.alternative_email', array('label'=>false,'div'=>false,'disabled'=>'disabled','class'=> 'form-control  ','id'=>'alternative_email','placeholder'=>'Email Alternativo')); ?>
								</div>
								<div class="col-lg-3 edit">
									<a href="#" class="open-edit" id="open-alternative_email"><i class="glyphicon glyphicon-edit"></i> Editar</a></div>
							</div>
				            
				        </div>
				    </div>				  
					<div class="row-fluid">
						<div class="form-group">
							<div class="row">
								<div class="col-lg-4"><strong>Nova Senha</strong></div>
								<div class="col-lg-5"> 
									
									<?php echo $this->Form->input('User.password', array('label'=>false,'type'=>'password','div'=>false,'disabled'=>'disabled','class'=> 'form-control  ',	'onblur'=>"valid(this)",'placeholder'=>'Nova Senha','id'=>'password')); ?>

									<?php echo $this->Form->input('User.password2', array('label'=>false,'type'=>'password','div'=>false,'disabled'=>'disabled','class'=> 'form-control  ',	'onblur'=>"valid(this)",'placeholder'=>'Repita Nova Senha','id'=>'password2')); ?>
									</br>
									<?php echo $this->Form->input('User.old', array('label'=>false,'type'=>'password','div'=>false,'disabled'=>'disabled','class'=> 'form-control  ',	'onblur'=>"valid(this)",'placeholder'=>'Senha Atual','id'=>'old_password')); ?>
								</div>
								<div class="col-lg-3 edit">
									<a href="#" id="open-password"><i class="glyphicon glyphicon-edit"></i> Editar</a>
								</div> 
							</div>
				            
				        </div>
				        <div class="form-group">
				        	<div class="row">
								<div class="col-lg-4"><strong>Excluir conta FlashCmm</strong></div>
								<div class="col-lg-3 edit">
									<a data-toggle="modal" href="#box-modal" class="btn btn-primary"	><i class="glyphicon glyphicon-edit"></i>Excluir</a></a>
									
							</div>
				            
				        </div>

				       
				   	</div>
				   	<?php echo $this->Form->end(array('label'=>'Salvar Alterações','class'=>' btn btn-primary valid')); ?>
				</div>
			</div>
	  </div>
	</div>
</div>


<!-- model adicioanr topico -->

<div class="modal fade" id="box-modal">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title"></h4>
      </div>
      <div class="modal-body modal-body-add-tpc">
       	Para excluir a conta, digite a senha :
       	
      </div>
      <div class="modal-footer">
    
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
